package edu.nbut.hotel.view.main;

import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.io.IOException;
import java.net.URL;

public class MainWindow {
    public MainWindow() throws IOException {
        URL url = MainWindow.class.getResource("/fxml/main.fxml");
        Parent root = FXMLLoader.load(url);
        Stage stage = new Stage();
        stage.setTitle("客房管理系统");
        stage.setScene(new Scene(root, 1024, 768));
        stage.setMinWidth(1080);
        stage.setMinHeight(850);
        stage.show();
    }
}
